package com.yonyou.pmclouds.team.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import com.yonyou.pmclouds.basecom.util.CommonFieldConst;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Data
public class TeamEnterpriseViewVO extends SuperVO {

    private static final long serialVersionUID = -953903311518877551L;

    @Id
    private String pkTeamEnt;
    private String pkTenant;
    private String pkProject;
    /**
     * 参与企业
     */
    private String pkEnterprise;
    /**
     * 企业名称
     */
    @Transient
    private String enterpriseName;
    /**
     * 企业角色
     */
    private Byte entRole;
    private String creator;
    private Date creationtime;
    private String modifier;
    private Date modifytime;

    private TeamMemberViewVO[] teamMemberViewVOs;

    public static String[] transFields = new String[]{
            TeamEnterpriseVO.PK_TEAM_ENT, CommonFieldConst.PK_TENANT,TeamEnterpriseVO.PK_PROJECT,TeamEnterpriseVO.PK_ENTERPRISE,TeamEnterpriseVO.ENT_ROLE,CommonFieldConst.CHANGE_FLAG
    } ;

}
